0:00–0:10
Recap / catch-up
0:10–0:35
Lecture
0:35–1:40
Lab 6-B
1:40–1:50
Bonus
1:50–2:00
Debrief
0:00 – 0:10Recap / catch-up · 10 min

Day 1 status check — hybrid join catch-up if needed

Day 1 catch-up window: The first 10 minutes are explicitly reserved for hybrid join troubleshooting. Students who couldn't complete Phase 8-10 yesterday should focus on getting dsregcmd to show AzureAdJoined = YES now. They can proceed with today's lab once the device shows in Intune, even if it happened this morning.
0:10 – 0:35Lecture · 25 min

Compliance policies — the rules, the states, and the CA connection

A compliance policy is a set of rules that devices must meet. Intune evaluates each enrolled device against its assigned compliance policy and reports a state — Compliant or Non-compliant. That state is then readable by Conditional Access.

The four compliance states

StateMeaningCA impact (with require compliant device)
CompliantAll compliance policy rules metAccess granted (subject to other CA conditions)
Non-compliantOne or more rules violated — e.g. BitLocker off, old OSAccess blocked — user sees a "You can't get there from here" page
Not evaluatedNo compliance policy assigned to this deviceTreated as non-compliant by default in CA
In grace periodNon-compliant but within the configured grace period (days)Access still granted — user has time to remediate
User signs in
with MFA ✓
CA evaluates
conditions
Device compliant?
(checks Intune)
YES → Access
granted ✓
/
NO → Access
blocked ✗
Instructor note: The live demo of breaking WIN-CLIENT-02 and watching it turn non-compliant in the Intune portal is the most effective moment of this day. Project the Intune Devices view while a student on WIN-CLIENT-02 disables Defender. The status change from Compliant to Non-compliant happening in near-real time makes the policy feel real rather than theoretical. Run the demo before students do it themselves in Step 3.
0:35 – 1:40Guided lab · 65 min

Lab 6-B: Windows compliance policy, device groups, intentional non-compliance, and CA wiring

Students create an Entra ID dynamic device group, build a Windows compliance policy with real security requirements, assign it, deliberately break WIN-CLIENT-02 to trigger non-compliance, observe and remediate, then update CA001 to require device compliance.

BitLocker on VMs: BitLocker compliance may show as non-compliant on some VM configurations — some hypervisors don't support TPM properly, which BitLocker requires. If this happens, remove the BitLocker requirement from the compliance policy for the lab (unset "Require BitLocker"). The concept is the same — BitLocker is the right setting for physical devices. Note this in your Lab Journal and explain why you made the change.
Instructor note: Step 6 (the live CA block test) is optional in the sense that it's time-consuming, but it is the most valuable demonstration of the week. Students who see their M365 access blocked because of a device compliance state will never forget the mechanism. If time is tight, do this as a class demo on the projector rather than having every student do it individually.
1:40 – 1:50Bonus · 10 min

⭐ Bonus: Custom compliance scripts and compliance reports

⭐ Bonus A — Custom compliance script (PowerShell)
  • Navigate to Intune → Devices → Compliance → Scripts. Create a custom compliance script for Windows
  • Write a simple PowerShell script that checks whether a specific registry key exists — for example, checking that a corporate software is installed. The script must output a JSON result that Intune can read: $hash = @{ "SoftwareInstalled" = $true }; return $hash | ConvertTo-Json -Compress
  • Add a custom compliance setting to the compliance policy that references this script and requires SoftwareInstalled = true
  • In your Lab Journal: when would custom compliance scripts be valuable in a real deployment? What limitations do they have?
⭐ Bonus B — Compliance reporting
  • Navigate to Intune → Reports → Device compliance. Review the Compliance trends and Per-policy reports
  • Navigate to Devices → Monitor → Noncompliant devices. Note the format of the report
  • Export the compliance report to CSV: click the report → Export → CSV. Open in Excel and review the columns
  • In your Lab Journal: how would you use this report in a real organisation? What would you do with devices that have been non-compliant for more than 30 days?
1:50 – 2:00Debrief · 10 min

Reflection & preview

Learning outcomes — by end of Day 2, students can…

Create dynamic device groupsBuild an Entra ID dynamic device group using deviceOSType membership rules
Build compliance policiesConfigure a Windows compliance policy covering OS version, encryption, Defender, and password requirements
Assign to device groupsAssign compliance policies to dynamic device groups and observe the evaluation
Demonstrate non-complianceDeliberately trigger non-compliance and observe the state change in Intune
Wire CA to complianceAdd "Require compliant device" to an existing CA grant control
Explain the CA chainDescribe the full credential → MFA → device compliance → M365 access chain

What you need ready

WIN-CLIENT-01 enrolled in Intune (from Day 1) WIN-CLIENT-02 enrolled (from Day 1 Bonus or today's catch-up) CA001 enabled (not Report-only) from Week 2 Bonus B Intune portal (intune.microsoft.com) Lab 6-B step sheet
Day 3 →Week 6 Overview